import request from '@/utils/request'

// 查询团队赛队伍报名列表
export function listTeamregistration(query) {
  return request({
    url: '/learnmanagement/teamregistration/list',
    method: 'get',
    params: query
  })
}

// 查询团队赛队伍报名详细
export function getTeamregistration(id) {
  return request({
    url: '/learnmanagement/teamregistration/' + id,
    method: 'get'
  })
}

// 新增团队赛队伍报名
export function addTeamregistration(data) {
  return request({
    url: '/learnmanagement/teamregistration',
    method: 'post',
    data: data
  })
}

// 修改团队赛队伍报名
export function updateTeamregistration(data) {
  return request({
    url: '/learnmanagement/teamregistration',
    method: 'put',
    data: data
  })
}

// 删除团队赛队伍报名
export function delTeamregistration(id) {
  return request({
    url: '/learnmanagement/teamregistration/' + id,
    method: 'delete'
  })
}
// 查询团队赛队伍报名列表
export function listTeamregistrationByStudentId(studentId) {
  return request({
    url: '/learnmanagement/teamregistration/TeamListByStudentId/' + studentId,
    method: 'get'
  })
}

// 查询团队赛队伍成员列表
export function listTeamMemberByStudentId(studentId) {
  return request({
    url: '/learnmanagement/teamregistration/TeamMemberListByStudentId/' + studentId,
    method: 'get'
  })
}
